//
//  LocationViewController.h
//  We365
//
//  Created by Pham Khuong Duy on 2/5/12.
//  Copyright 2012 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface LocationViewController : UIViewController <UITableViewDataSource, UITableViewDelegate, UISearchBarDelegate>
{
    NSMutableData *webData;
    NSURLConnection *conn; 
    UITableView *table;
    UISearchBar *search;
    NSMutableArray *items;
    NSIndexPath *lastIndex;
}

@property (nonatomic, retain) IBOutlet UITableView *table;
@property (nonatomic, retain) IBOutlet UISearchBar *search;
@property (nonatomic, retain) NSMutableData *webData;
@property (nonatomic, retain) NSURLConnection *conn;
@property (nonatomic, retain) NSMutableArray *items;
@property (nonatomic, retain) NSIndexPath *lastIndex;

- (void)resetSearch;
- (void)handleSearch:(NSString *)key;
- (IBAction)save:(id)sender;

@end
